package csc.daonjpa.java.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import csc.daonjpa.java.dao.AdminDAO;
import csc.daonjpa.java.domain.Admin;

@Service
public class AdminService {

	@Autowired
	private AdminDAO adminDAO;
	
	public AdminDAO getAdminDAO() {
		return adminDAO;
	}

	public void setAdminDAO(AdminDAO adminDAO) {
		this.adminDAO = adminDAO;
	}

	public Admin checkLogin(String loginId, String password) {
		return adminDAO.checkLogin(loginId, password);
	}

}
